import request from '@/utils/request'

// 商户列表
export function getList(params) {
  return request({
    url: `/merchant/v1/adminGetMerchantList`,
    method: 'get',
    params
  })
}
// 地图
export function getMap(params) {
  return request({
    url: `https://apis.map.qq.com/ws/place/v1/suggestion`,
    method: 'get',
    params
  })
}
//资金账户列表
export function merchantFundAccountList() {
  return request({
    url: `/merchant/v1/merchantFundAccountList`,
    method: 'get',
  })
}
//查看审核条数
export function getAdminGetAuditNumber(params) {
  return request({
    url: `/merchant/v1/adminGetAuditNumber`,
    method: 'get',
    params
  })
}
// 商家注册详情
export function getDetail(id) {
  return request({
    url: `/merchant/v1/${id}`,
    method: 'get'
  })
}
// 商家基本信息
export function getMerchantBaseInfoDetail(id) {
  return request({
    url: `/merchant/v1/merchantBaseInfoDetail/${id}`,
    method: 'get'
  })
}
// 商家店铺信息
export function getMerchantShopDetail(params) {
  return request({
    url: `/merchant/v1/merchantShopDetail`,
    method: 'get',
    params
  })
}
// 修改商家状态（禁用/启用）
export function setMerchantStatus(params) {
  return request({
    url: `/merchant/v1/merchantStatus`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}
// 修改商家状态（禁用/启用）
export function setshopStatus(params) {
  return request({
    url: `/merchant/v1/shopStatus`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}

// 资产详情
export function merchantAssetInfo(params) {
  return request({
    url: `/asset/v1/merchantAssetInfo`,
    method: 'get',
    params
  })
}

//积分列表
export function adminIntegralInfo(params) {
  return request({
    url: `/integral/v1/adminIntegralInfo`,
    method: 'get',
    params
  })
}

//券列表
export function adminTicketInfoList(params) {
  return request({
    url: `/ticket/v1/adminTicketInfoList`,
    method: 'get',
    params
  })
}

// 资产禁用
export function disable(params) {
  return request({
    url: `/asset/v1/updateAssetStatus`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}

//商户数据统计
export function adminGeiLinkageList(params) {
  return request({
    url: `/linkage/v1/adminGeiLinkageList`,
    method: 'get',
    params
  })
}

//商家联动列表导出
export function downExport(params) {
  return request({
    url: `/linkage/v1/linkage/export`,
    method: 'get',
    params
  })
}

//钱包余额总览
export function adminGetBalance(params) {
  return request({
    url: `/merchant/wallet/v1/adminGetBalance`,
    method: 'get',
    params
  })
}

//钱包列表
export function adminGetTradingList(params) {
  return request({
    url: `/merchant/wallet/v1/adminGetTradingList`,
    method: 'get',
    params
  })
}

//统一字典下拉框查询
export function adminDict(params) {
  return request({
    url: `common/v1/adminDict`,
    method: 'get',
    params
  })
}

//积分详情
export function integralInfo(params) {
  return request({
    url: `/integral/v1/integralInfo`,
    method: 'get',
    params
  })
}

//资产联动商家数量
export function merchantNumber(params) {
  return request({
    url: `/linkage/v1/adminLinkageMerchantNumber`,
    method: 'get',
    params
  })
}

//联动信息
export function adminLinkageList(params) {
  return request({
    url: `/linkage/v1/adminLinkageList`,
    method: 'get',
    params
  })
}

//用户明细
export function adminUserInfo(params) {
  return request({
    url: `/customer/wallet/v1/adminUserInfo`,
    method: 'get',
    params
  })
}

//积分发布期数
export function adminAssetPeriods(params) {
  return request({
    url: `/asset/v1/adminAssetPeriods`,
    method: 'get',
    params
  })
}

//积分明细
export function adminIntegralDetail(params) {
  return request({
    url: `/integral/v1/adminIntegralDetail`,
    method: 'get',
    params
  })
}

//券详情
export function couTicketInfo(params) {
  return request({
    url: `/ticket/v1/adminTicketInfo`,
    method: 'get',
    params
  })
}

//券明细
export function adminTicketDetail(params) {
  return request({
    url: `/ticket/v1/adminTicketDetail`,
    method: 'get',
    params
  })
}
// 变更手机号
export function merchantPhone(params) {
  return request({
    url: `/merchant/v1/merchantPhone`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}

// 已发布卡统计
export function cardOrderStatistics(params) {
  return request({
    url: `/merchant/v1/cardOrderStatistics`,
    method: 'get',
    params
  })
}
//卡列表
export function cardList(params) {
  return request({
    url: `/merchant/v1/cardList`,
    method: 'get',
    params
  })
}
// 卡禁用
export function updateStatus(params) {
  return request({
    url: `/merchant/v1/updateStatus`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}
//卡情况
export function cardDetail(params) {
  return request({
    url: `/merchant/v1/cardDetail`,
    method: 'get',
    params
  })
}
//卡分红信息
export function cardDividendStatistics(params) {
  return request({
    url: `/merchant/v1/cardDividendStatistics`,
    method: 'get',
    params
  })
}
//卡用户使用明细
export function cardUseList(params) {
  return request({
    url: `/merchant/v1/cardUseList`,
    method: 'get',
    params
  })
}
//卡明细
export function moneyBil(params) {
  return request({
    url: `/merchant/v1/moneyBill`,
    method: 'get',
    params
  })
}
//行业类型
export function shopTypeTree(params) {
  return request({
    url: `/merchant/v1/shopTypeTreeAll`,
    method: 'get',
    params
  })
}
//重新报备政府监管平台--详情
export function govApplyInfo(id) {
  return request({
    url: `/merchant/v1/govApplyInfo/${id}`,
    method: 'get'
  })
}
// 重新报备政府监管平台--提交
export function editGovApplyInfo(data) {
  return request({
    url: `/merchant/v1/editGovApplyInfo`,
    method: 'put',
    data
  })
}
// 未入驻商家--编辑
export function adminUpdateShop(data) {
  return request({
    url: `/merchant/v1/adminUpdateShop`,
    method: 'put',
    data
  })
}
//商家钱包信息-new
export function merchantBgBills(params) {
  return request({
    url: `/bg/merchant/data/merchantBgBills`,
    method: 'get',
    params
  })
}
//商家会员信息-new
export function merchantBgMembers(params) {
  return request({
    url: `/bg/merchant/data/merchantBgMembers`,
    method: 'get',
    params
  })
}

//修改推荐人
export function editReferrer(params) {
  return request({
    url: `/merchant/v1/referrer`,
    method: 'put',
    params
  })
}

// 会员持卡详情
export function cardList4Customer(params) {
  return request({
    url: '/bg/merchant/data/cardList4Customer',
    method: 'get',
    params
  })
}
// 会员持卡使用情况
export function cardUseLs(params) {
  return request({
    url: '/bg/merchant/data/cardUseList',
    method: 'get',
    params
  })
}
//监管比例/发卡规模查询
export function supervise(merchantId) {
  return request({
    url: `/merchant/supervise/v1/${merchantId}`,
    method: 'get'
  })
}
// 监管比例/发卡规模修改
export function superviseMide(data) {
  return request({
    url: `/merchant/supervise/v1`,
    method: 'put',
    data
  })
}
//商户列表预付卡流水
export function cardBillList(params) {
  return request({
    url: '/bg/merchant/data/CardBillList',
    method: 'get',
    params
  })
}
//行业类型-new
export function shopTypeList(params) {
  return request({
    url: `/common/v1/shopTypeListAll`,
    method: 'get',
    params
  })
}
//查询发卡限制分页数据
export function cardlimitLs(params) {
  return request({
    url: `/merchant/cardlimit/v1/list`,
    method: 'get',
    params
  })
}
//新增或者编辑时查询店铺行业
export function limitshopTypeList(params) {
  return request({
    url: `/merchant/cardlimit/v1/shopTypeList`,
    method: 'get',
    params
  })
}
//新增发卡限制
export function addCardlimit(data) {
  return request({
    url: '/merchant/cardlimit/v1',
    method: 'post',
    data
  })
}
//查询发卡限制详情
export function cardlimitDetail(id) {
  return request({
    url: `/merchant/cardlimit/v1/detail/${id}`,
    method: 'get'
  })
}
// 更新发卡限制
export function updateCardlimit(data) {
  return request({
    url: `/merchant/cardlimit/v1`,
    method: 'put',
    data
  })
}
//监管平台数据同步-列表
export function govList(params) {
  return request({
    url: `/merchant/gov/data/v1/listV2`,
    method: 'get',
    params
  })
}
//监管平台数据同步-状态统计
export function govstatusTotal(params) {
  return request({
    url: `/merchant/gov/data/v1/statusTotal`,
    method: 'get',
    params
  })
}
//监管平台数据同步-行业下拉框
export function govshopType(params) {
  return request({
    url: `/merchant/gov/data/v1/shopType`,
    method: 'get',
    params
  })
}
// 监管平台数据同步-预警同步
export function importExcel(params) {
  return request({
    url: `/merchant/gov/data/v1/importExcel`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}
//监管平台数据同步-同步数据详情
export function govdetail(params) {
  return request({
    url: `/merchant/gov/data/v1/detailV2`,
    method: 'get',
    params
  })
}
//监管平台数据同步-数据同步或更新
export function govUpdate(data) {
  return request({
    url: `/merchant/gov/data/v1`,
    method: 'put',
    data
  })
}
//合利宝产品开通状态查询（费率）
export function getqueryStatus(id) {
  return request({
    url: `/entry/v1/hlb/openProduct/queryStatus/${id}`,
    method: 'get',
  })

}
//查询银盛进件商户基础信息
export function ysBase(params) {
  return request({
    url: `/entry/v1/fund/view/ys/base`,
    method: 'get',
    params
  })
}
//查询银盛进件商户结算账户信息
export function settle(merchantId) {
  return request({
    url: `/entry/v1/fund/view/ys/settle/${merchantId}`,
    method: 'get'
  })
}
//查询银盛进件商户图片信息
export function ysImg(params) {
  return request({
    url: `/entry/v1/fund/view/ys/img`,
    method: 'get',
    params
  })
}
//更新银盛进件商户基础信息
export function updateBase(data) {
  return request({
    url: `/entry/v1/fund/ys/base`,
    method: 'put',
    data
  })
}
// 上传银盛进件商户二联单合同
export function yscontractImg(params) {
  return request({
    url: `/entry/v1/fund/ys/img`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}
//查询mcc码下拉框
export function getYsMcc(params) {
  return request({
    url: `/common/v1/ys/mcc`,
    method: 'get',
    params
  })
}
//查询帐号微信支付宝授权状态
export function ysAuthState(accountId) {
  return request({
    url: `/entry/v1/fund/ys/auth/state/${accountId}`,
    method: 'get'
  })
}
//中台查询营业地区
export function getMerchantCity(params) {
  return request({
    url: `/common/v1/merchantCity`,
    method: 'get',
    params
  })
}
//查询银盛银行信息
export function getBank(params) {
  return request({
    url: `/entry/v1/fund/ys/bank`,
    method: 'get',
    params
  })
}
//中台查询银盛城市
export function getBankCity(params) {
  return request({
    url: `/common/v1/bankCity`,
    method: 'get',
    params
  })
}
//查询银行支行
export function getBankBranch(params) {
  return request({
    url: `/common/v1/bankBranch`,
    method: 'get',
    params
  })
}
//新增结算信息变更申请
export function fundChangeSettle(data) {
  return request({
    url: '/entry/v1/fund/change/settle',
    method: 'post',
    data
  })
}
//查询结算信息变更申请
export function getFundChangeSettle(fundAccountId) {
  return request({
    url: `/entry/v1/fund/change/settle/${fundAccountId}`,
    method: 'get',
  })
}
//更新结算信息变更申请
export function updateFundChangeSettle(data) {
  return request({
    url: `/entry/v1/fund/change/settle`,
    method: 'put',
    data
  })
}
//查询费率变更申请
export function getFundChangeFee(fundAccountId) {
  return request({
    url: `/entry/v1/fund/change/fee/${fundAccountId}`,
    method: 'get',
  })
}
//新增费率变更申请
export function fundChangeFee(data) {
  return request({
    url: '/entry/v1/fund/change/fee',
    method: 'post',
    data
  })
}
//更新费率变更申请
export function updateFundChangeFee(data) {
  return request({
    url: `/entry/v1/fund/change/fee`,
    method: 'put',
    data
  })
}
//更新银盛进件商户结算账户信息
export function updateSettle(data) {
  return request({
    url: `/entry/v1/fund/ys/settle`,
    method: 'put',
    data
  })
}
//银盛下发电子合同
export function yscontract(merchantId) {
  return request({
    url: `/entry/v1/fund/ys/send/contract/${merchantId}`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}
//推送银盛审核
export function ysPush(merchantId) {
  return request({
    url: `/entry/v1/fund/ys/push/${merchantId}`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}
// 拒绝商家入驻
export function ysRefuse(params) {
  return request({
    url: `/entry/v1/fund/ys/refuse`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}
//银盛修改其他资质图片
export function updateOtherimg(data) {
  return request({
    url: `/entry/v1/fund/ys/other/img`,
    method: 'put',
    data
  })
}
//新增体验卡
export function experienceCard(data) {
  return request({
    url: '/merchant/v1/card',
    method: 'post',
    data
  })
}
//退卡列表
export function beeAssetcardReturnList(params) {
  return request({
    url: `/asset/card/experience/return/v1/assetCardReturnList`,
    method: 'get',
    params
  })
}
//查看退卡列表审核条数
export function beeAssetcardReturnNumber(params) {
  return request({
    url: `/asset/card/experience/return/v1/assetCardReturnNumber`,
    method: 'get',
    params
  })
}
//体验卡同意退卡
export function returnAgree(id) {
  return request({
    url: `/asset/card/experience/return/v1/agree/${id}`,
    // url: '/asset/card/experience/return/v1/agree/{id}',
    method: 'post',
  })
}
// 修改卡资产介绍
export function mideIntroduced(data) {
  return request({
    url: `/merchant/v1/introduced`,
    method: 'put',
    data
  })
}
//卡状况 编辑 卡封面
export function updateCardCover(params) {
  return request({
    url: `/asset/experience/v1/updateCardCover`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}
//爆卡详情
export function experienceDetail() {
  return request({
    url: `/asset/experience/v1/detail`,
    method: 'get'
  })
}
//查询城市数据
export function getCity(params) {
  return request({
    url: `/common/v1/city`,
    method: 'get',
    params
  })
}
//商家更新省市区信息
export function updateRegionInfo(data) {
  return request({
    url: `/merchant/v1/updateRegionInfo`,
    method: 'put',
    data
  })
}
//商家更新省市区信息
export function spuriousUpdateRegionInfo(params) {
  return request({
    url: `/merchant/shop/spurious/v1/updateRegionInfo`,
    method: 'put',
    params
  })
}
//删除
export function getDelete(shopID) {
  return request({
    url: `/merchant/shop/spurious/v1/${shopID}`,
    method: 'DELETE'
  })
}
//查询商家进件状态
export function entryStatus(merchantId) {
  return request({
    url: `/entry/v1/fund/view/ys/entry/status/${merchantId}`,
    method: 'get',
  })
}
//查询银盛进件商户日常结算账户信息
export function entrySettle(merchantId) {
  return request({
    url: `/entry/v1/fund/view/ys/settle/${merchantId}`,
    method: 'get',
  })
}
//查询银盛进件商户存管结算账户信息
export function settleDeposit(merchantId) {
  return request({
    url: `/entry/v1/fund/view/ys/settle/deposit/${merchantId}`,
    method: 'get',
  })
}

//1.9.8

//查询商家抖音团购设置信息
export function getGrouponSetting(params) {
  return request({
    url: `/merchant/groupon/v1/getSetting`,
    method: 'get',
    params
  })
}
//抖音团购设置
export function grouponSetting(params) {
  return request({
    url: `/merchant/groupon/v1/setting`,
    method: 'put',
    params
  })
}

// 2022-05-19(保险)

//查询商家保险配置
export function insuranceDetail(merchantId) {
  return request({
    url: `/bg/merchant/data/insurance/${merchantId}`,
    method: 'get',
  })
}
//新增商家保险配置
export function addInsurance(data) {
  return request({
    url: '/bg/merchant/data/insurance/',
    method: 'post',
    data
  })
}
//更新商家保险配置
export function updateInsurance(data) {
  return request({
    url: '/bg/merchant/data/insurance/',
    method: 'put',
    data
  })
}
// 更新商家保险配置状态
export function insuranceStatus(params) {
  return request({
    url: `/bg/merchant/data/insurance/status`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}
//查询参保预付卡列表
export function insuranceCardList(params) {
  return request({
    url: `/bg/merchant/data/insurance/card/list`,
    method: 'get',
    params
  })
}
//查询商家所有的卡列表
export function merchantCardList(params) {
  return request({
    url: `/bg/merchant/data/card/list`,
    method: 'get',
    params
  })
}
// 新增参保卡
export function addInsuranceCard(params) {
  return request({
    url: `/bg/merchant/data/insurance/card`,
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    params
  })
}
// 移除参保卡
export function removeInsurance(id) {
  return request({
    url: `/bg/merchant/data/insurance/card/${id}`,
    method: 'DELETE',
  })
}
//保险配置变更记录
export function insuranceAuditList(params) {
  return request({
    url: `/bg/merchant/data/insuranceAudit/list`,
    method: 'get',
    params
  })
}

//查询商家店铺评价列表
export function shopevaluateList(params) {
  return request({
    url: `/merchant/v1/customer/shopevaluate/list`,
    method: 'get',
    params
  })
}

//2022-7-29

//中台 注册状态正常商户 跳转 商家端 获取 token
export function merchantRedirect(params) {
  return request({
    url: `/system/v1/merchant/redirect`,
    method: 'get',
    params
  })
}
// 2022-11-15
//校验注册手机号
export function merchantCheckPhone(params) {
  return request({
    url: `/merchant/v1/check/phone`,
    method: 'get',
    params
  })
}
//新增商家
export function addMerchant(data) {
  return request({
    url: '/merchant/v1/add/merchant/',
    method: 'post',
    data
  })
}
//修改合同确认书
export function merchantEnterFile(params) {
  return request({
    url: '/merchant/v1/enter/file',
    method: 'put',
    params
  })
}
//批量同步
export function editBatch(data) {
  return request({
    url: '/merchant/gov/data/v1/editBatch',
    method: 'post',
    data
  })
}
//2023-4-10
//重置密码
export function resetPassword(params) {
  return request({
    url: '/merchant/v1/reset/password',
    method: 'put',
    params
  })
}

//修改神椰端显示
export function syShopStatus(params) {
  return request({
    url: '/merchant/v1/shenye/shopStatus',
    method: 'put',
    params
  })
}
//修改卡优优端显示
export function kyyShopStatus(params) {
  return request({
    url: '/merchant/v1/shopStatus',
    method: 'put',
    params
  })
}

// 查询银盛银行信息
export function entryV1FuncYSBankBin(params) {
  return request({
    url: '/entry/v1/fund/ys/bank/bin',
    method: 'get',
    params
  })
}
// <------------神椰 2.4.6-2 Star----------------->
//更新商家营业执照信息
export function businessLicenseRenew(data) {
  return request({
    url: '/merchant/v1/merchant/business/license',
    method: 'put',
    data
  })
}
// 查询商家图片信息
export function merchantImg(id) {
  return request({
    url: `/merchant/v1/merchant/img/${id}`,
    method: 'get',
  })
}
//更新商家图片信息
export function merchantImgRenew(data) {
  return request({
    url: '/merchant/v1/merchant/img',
    method: 'put',
    data
  })
}
//  <----------------end--------------------->

// kyy-2.3.3-----2024.8.26
//查看银盛进件日常备用结算结算信息
export function ysStandSettle(merchantId) {
  return request({
    url: `/entry/v1/fund/view/ys/stand/settle/${merchantId}`,
    method: 'get',
  })
}
//更新银盛进件备用结算信息
export function standSettleRenew(data) {
  return request({
    url: '/entry/v1/fund/ys/stand/settle',
    method: 'put',
    data
  })
}
// kyy-2.4.1-----2024.10.12

//初始化易生进件信息(日常)
export function yishengEntry(merchantId) {
  return request({
    url: `/entry/v1/fund/init/yisheng/entry/${merchantId}`,
    method: 'put',
  })
}
//初始化易生进件信息(存管)
export function yishengDepositInfo(merchantId) {
  return request({
    url: `/entry/v1/fund/init/yisheng/depositInfo/${merchantId}`,
    method: 'put',
  })
}
//查询易生商家进件状态信息
export function entryStatusYisheng(merchantId) {
  return request({
    url: `/entry/v1/fund/view/yisheng/entry/status/${merchantId}`,
    method: 'get',
  })
}
//查看易生进件基础信息
export function ysBaseYisheng(params) {
  return request({
    url: `/entry/v1/fund/view/yisheng/base`,
    method: 'get',
    params
  })
}
//查询银盛进件商户日常结算账户信息
export function entrySettleYisheng(merchantId) {
  return request({
    url: `/entry/v1/fund/view/yisheng/settle/${merchantId}`,
    method: 'get',
  })
}
//查看易生进件图片信息
export function ysImgYisheng(params) {
  return request({
    url: `/entry/v1/fund/view/yisheng/img`,
    method: 'get',
    params
  })
}
//更新易生进件图片
export function updateOtherimgYisheng(data) {
  return request({
    url: `/entry/v1/fund/yisheng/other/img`,
    method: 'put',
    data
  })
}
//上传易生信息
export function ysPushYisheng(id) {
  return request({
    url: `/entry/v1/fund/yisheng/push/${id}`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}
//易生修改基础信息
export function updateBaseYisheng(data) {
  return request({
    url: `/entry/v1/fund/yisheng/base`,
    method: 'put',
    data
  })
}
//更新易生进件结算信息
export function updateSettleYisheng(data) {
  return request({
    url: `/entry/v1/fund/yisheng/settle`,
    method: 'put',
    data
  })
}
//易生新增结算信息变更申请
export function fundChangeSettleYisheng(data) {
  return request({
    url: '/entry/v1/fund/yisheng/change/settle',
    method: 'post',
    data
  })
}
//易生查询结算信息变更申请
export function getFundChangeSettleYisheng(fundAccountId) {
  return request({
    url: `/entry/v1/fund/yisheng/change/settle/${fundAccountId}`,
    method: 'get',
  })
}
//易生更新结算信息变更申请
export function updateFundChangeSettleYisheng(data) {
  return request({
    url: `/entry/v1/fund/yisheng/change/settle`,
    method: 'put',
    data
  })
}
//查询费率变更申请
export function getFundChangeFeeYisheng(fundAccountId) {
  return request({
    url: `/entry/v1/fund/yisheng/change/fee/${fundAccountId}`,
    method: 'get',
  })
}
//新增费率变更申请
export function fundChangeFeeYisheng(data) {
  return request({
    url: '/entry/v1/fund/yisheng/change/fee',
    method: 'post',
    data
  })
}
//更新费率变更申请
export function updateFundChangeFeeYisheng(data) {
  return request({
    url: `/entry/v1/fund/yisheng/change/fee`,
    method: 'put',
    data
  })
}
//易生查看存管账户结算信息接口
export function settleDepositYisheng(merchantId) {
  return request({
    url: `/entry/v1/fund/view/yisheng/settle/deposit/${merchantId}`,
    method: 'get',
  })
}
//易生签约申请
export function yishengSignApply(id) {
  return request({
    url: `/entry/v1/fund/yisheng/sign/apply/${id}`,
    method: 'put',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}


// 2024-11-14 (保险)

//商家保险配置
export function newInsuranceDetail(id) {
  return request({
    url: `/bg/merchant/data/insuranceAudit/detail/${id}`,
    method: 'get',
  })
}

// 保险钱包信息
export function walletDetail(merchantId) {
  return request({
    url: `/bg/merchant/data/insuranceAudit/walletDetail/${merchantId}`,
    method: 'get',
  })
}

// end